package cn.lili.modules.promotion.mapper;

import cn.lili.modules.promotion.entity.dos.BlindboxRule;
import cn.lili.modules.promotion.entity.vos.BlindboxRuleVO;
import cn.lili.modules.promotion.entity.vos.CouponVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 盲盒规则商品关联 Dao层
 * @author xiangqian
 */
public interface BlindboxRuleMapper extends BaseMapper<BlindboxRule> {

    @Select("select * from li_blindbox_rule where ${ew.sqlSegment}")
    Page<BlindboxRuleVO> getBlindboxRuleList(Page<BlindboxRuleVO> page, @Param(Constants.WRAPPER) Wrapper<BlindboxRuleVO> queryWrapper);
}